#!/bin/bash

# Тест работы интерпретатора SystemVerilog (простые алгоритмы и проверки)

echo "Тест работы интерпретатора SystemVerilog ====================================" > test/tmp/test-interpret-systemverilog.out

for file in test/source/systemverilog/*.simodo-script
do
    echo "--- ${file} :" >> test/tmp/test-interpret-systemverilog.out
    cat ${file} >> test/tmp/test-interpret-systemverilog.out
    echo "--- interpret :" >> test/tmp/test-interpret-systemverilog.out
    bin/simodo-interpret ${file} >> test/tmp/test-interpret-systemverilog.out
done

echo "Тест работы анализатора SystemVerilog ====================================" >> test/tmp/test-interpret-systemverilog.out

for file in test/source/systemverilog/*.simodo-script
do
    echo "--- ${file} :" >> test/tmp/test-interpret-systemverilog.out
    cat ${file} >> test/tmp/test-interpret-systemverilog.out
    echo "--- interpret :" >> test/tmp/test-interpret-systemverilog.out
    bin/simodo-interpret ${file} -p a >> test/tmp/test-interpret-systemverilog.out
done

exit 0
